package com.gdcp.service.impl;

import com.gdcp.beans.Role;
import com.gdcp.mapper.RoleMapper;
import com.gdcp.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 杨华京
 * @version 1.0
 * @description
 * @since 1.8
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    RoleMapper roleMapper;

    @Override
    public List<Role> queryAll() {
        return roleMapper.queryAll();
    }

    @Override
    public Role getInformation(int irole_id) {
        return roleMapper.getInformation(irole_id);
    }
}
